from fake_useragent import UserAgent
import random

# ua = UserAgent(use_cache_server=False, cache=False, verify_ssl=False)


def randomUA():
    with open("./da/UA.txt", "r", encoding="utf8") as fi:
        # print(fi.read())
        UA = fi.read().split("\n")
    if fi is not None:
        print("closing")
        fi.close()
    ua = random.choice(UA)
    return ua
